package com.dykj.fireFighting.server.socialUnit.xfxg.mapper;

import com.dykj.fireFighting.api.socialUnit.xfxg.entity.PatrolReportRecord;
import com.dykj.fireFighting.common.core.mapper.SuperMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @Description 巡更报告记录表
 * @Author JacksonTu
 * @Date  2021-07-05 15:22:53
 */
public interface PatrolReportRecordMapper extends SuperMapper<PatrolReportRecord> {

    @Select("select * from patrol_report_record where patrol_report_id=#{patrolReportId}")
    List<PatrolReportRecord>  getList(String patrolReportId);

    @Select("select * from patrol_report_record where patrol_report_id=#{patrolReportId} and status='异常' and is_report=0")
    List<PatrolReportRecord>  getYcList(String patrolReportId);
	
}
